<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <title>帮助中心</title>
    <%@include file="/WEB-INF/views/include/weixinhead.jsp" %>>
</head>
<body>
<!--帮助中心-->
<div data-role="page" id="detailes-page" class="page" >
    <div data-role="header" class="header header-1">帮助中心
        <span class="return-btn"><a href="/f/campusinfo/person" data-ajax="false" data-transition="slideup"><img src="${ctxStatic}/modules/wechat/css/images/yuanjiaojuxing25.png" alt=""></a></span>
    </div>
    <div role="main" class="content-1">
        <%--<div class="account border-4">--%>
            <%--<label>报名指南</label>--%>
            <%--<a href="/f/campusinfo/guide" data-ajax="false"><span><img src="${ctxStatic}/modules/wechat/css/images/right.png" alt=""></span></a>--%>
        <%--</div>--%>
        <%--<div class="account border-4">--%>
            <%--<label>常见问题</label>--%>
            <%--<a href="/f/campusinfo/commonProblem" data-ajax="false"><span><img src="${ctxStatic}/modules/wechat/css/images/right.png" alt=""></span></a>--%>
        <%--</div>--%>
        <!--<div data-role="footer"></div>-->
    </div>
</div>
<script>
    $(document).ready(function () {
        // $(".border-4").click(function () {
        //     var index=$(".border-4").index(this);
        //     switch (index){
        //         case 0:
        //             window.location.href="/f/campusinfo/guide";
        //             break;
        //         case 1:
        //             window.location.href="/f/campusinfo/commonProblem";
        //             break;
        //     }
        // });
        $.ajax({
            url:interfaceHelpList+generateMixed(9),
            type:'post',
            success:function(data){
                // console.log(data);
                for(var i=0;i<data.page.length;i++){
                    $(".content-1").eq(0).append(" <div class=\"account border-4\" id="+data.page[0].id+">\n" +
                        "            <label>"+data.page[i].helpShort+"</label>\n" +
                        "            <a href='#' data-ajax=\"false\"><span><img src=\"${ctxStatic}/modules/wechat/css/images/right.png\" alt=\"\"></span></a>\n" +
                        "        </div>");
                }
            }
        });

        /*跳转详情页*/
        $(document).delegate(".border-4","click",function(){
            var index=$(".border-4").index(this);
            var id=$(".border-4").eq(index).attr("id");
                window.location.href="/f/campusinfo/helpDetail?id="+id+generateMixed(9);
        })
    })
</script>
</body>
</html>